package com.atguigu.gulimall.order.service;

import com.atguigu.common.to.mq.SeckillOrderTo;
import com.atguigu.gulimall.order.vo.*;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.order.entity.OrderEntity;

import java.util.Map;

/**
 * 订单
 *
 * @author zhough
 * @email zhough@gmail.com
 * @date 2024-01-22 20:25:41
 */
public interface OrderService extends IService<OrderEntity> {

    PageUtils queryPage(Map<String, Object> params);

    OrderConfirmVo confirmOrder();

    OrderSubmitResponseVo orderSubmit(OrderSubmitRequestVo vo);

    OrderEntity getOrderInfoByOrderSn(String orderSn);

    void cancelOrder(String orderSn);

    PayVo getOrderPayVo(String orderSn);

    PageUtils queryPageWithItem(Map<String, Object> params);

    String handleAliPayed(PayAsyncVo vo);

    void handleSeckillOrder(SeckillOrderTo seckillOrderTo);
}

